# -*- coding: utf-8 -*-
class CompanyController < ApplicationController
  before_filter :employee_authorize
  before_filter :sys_before_log

  def getAllCompanies
     companies = Company.select("id,name")
     jsonStr="{totalProperty:"+companies.length.to_s+",root:"+companies.to_json()+"}"
     render :text=>jsonStr, :layout=>false
  end
end
